package com.itheima.StringBuilderDemo;

public class SBDemo2 {
    public static void main(String[] args) {
        //1.创建对象
        StringBuilder sb=new StringBuilder();
        //2.添加字符串
        sb.append("aaa");
        sb.append("bbb");
        sb.append("ccc");
        sb.append("ddd");
        //3.再变回字符串
        String str=sb.toString();

    }
}
